package com.sujie;

import java.io.*;

/**
 * @author: xinmi
 * @date: 2020/12/8
 * @description:
 */
public class FileReader {

    public static void main(String[] argc) throws IOException {
        String fileName = System.getProperty("user.dir") + "/APTSDataForwardService_data_20201208154827.log";
        readFile1(fileName);
    }

    private static void readFile1(String fin) throws IOException {
        FileInputStream fis = new FileInputStream(fin);

        //Construct BufferedReader from InputStreamReader
        BufferedReader br = new BufferedReader(new InputStreamReader(fis));

        String line = null;
        while ((line = br.readLine()) != null) {
            System.out.println(line);
        }

        br.close();
    }

}
